SERVER_URL = 'http://127.0.0.1:8080/'
XMLRPC_ADDR = '127.0.0.1', 6666
SOCKET_ADDR = '127.0.0.1', 8888
GPS_INTERVAL = 5

# logging
LOG_FORMAT = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
LOG_FILE = 'logger.out'
LOG_SERVER = '127.0.0.1'
LOG_PORT = 9999


rpc_password = 'marek'

from sniffylib.client import http
client = http.HttpClient(SERVER_URL)

#from sniffylib.localise import misc
#location = misc.RandomPositionService(GPS_INTERVAL)

from sniffylib.localise import gps
location = gps.Gps(GPS_INTERVAL)


from sniffylib.core import application
lello = application.LelloService(client, location)

from sniffylib.rpc import core, shell

env = {}
shell = shell.SniffyShell(rpc_password, env)
from sniffylib.rpc import socket
rpc = socket.SocketService(shell, SOCKET_ADDR)

env['lello'] = lello
env['remote'] = rpc

from sniffylib.ui import s60ui as frontend
